home *** CD-ROM | disk | FTP | other *** search
- Subject: gethostname library function
- Date: Wed, 06 Oct 93 16:43:08 +0100
- From: sjg
- X-Mts: smtp
-
-
- Looking at the function in the library, it seems to do the following:
-
- o Check for a HOSTNAME environment variable
- o Look for a file /local/hostname and use the contents
-
- I think it would be more unix-like to reverse the order of those 2
- things, and make the file /etc/hostname rather than /local/hostname.
- I suppose to maintain compatibility, it will have to do:
-
- o Look for a file /etc/hostname and use the contents
- o Check for a HOSTNAME environment variable
- o Look for a file /local/hostname and use the contents
-
- Comments ?
-
- Simon.
-